Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
Procese múltiples imágenes usando npm sightengine, obtengo "TypeError: fs.createReadStream no es una función"

Obtengo "TypeError: fs.createReadStream no es una función" cuando intento devolver algunos datos de la API de sightengine de las imágenes.

Aquí está el bucle que estoy usando en un proyecto de Vuejs:

 async runBlurDetector() { console.log("Images uploaded") console.log(this.images) for (let i = 0; i < this.images.length; i++) { this.images[i].url = URL.createObjectURL(this.images[i]); var reader = new FileReader(); reader.onload = () => { this.images[i].image = reader.result; }; reader.readAsDataURL(this.images[i]); await this.blurDetector(this.images[i]); } }, blurDetector(image) { console.log("Blur Detector Starting...."); console.log(image) sightengine.check(['properties']).set_file("../assets/images/" + image.name).then(function (result) { // The result of the API console.log(result) }).catch(function (err) { // Error console.log(err) }); } }``` I get the following error: ```TypeError: fs.createReadStream is not a function at Object.client.set_file (sightengine.js?cdad:37:1) at VueComponent.blurDetector (Dashboard.vue?98fa:94:1)```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!